<template>
    <div>
           <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        type="index"
        label="#"
        >
      </el-table-column>
      <el-table-column
        prop="order_number"
        label="订单编号"
        >
      </el-table-column>
      <el-table-column
        prop="order_price"
        label="订单价格">
      </el-table-column>
      <el-table-column
        prop="order_pay"
        label="是否付款">
          <el-tag
    key="label"
    type="danger"
    effect="dark" >
  未付款
  </el-tag>
      </el-table-column>
      <el-table-column
        prop="is_send"
        label="是否发货">
      </el-table-column>
      <el-table-column
        prop="update_time"
        label="下单时间">
      </el-table-column>
      <el-table-column
        prop="address"
        label="操作">
        <el-button size="mini" > 删除</el-button>
      </el-table-column>
    </el-table>
    </div>
</template>
<script>
export default {
    data() {
        return {
            tableData:[],
            orders:{
              pagenum:1,
              pagesize:100,
  

            }
        }
    },
    created() {
      this.goodget()
    },
    methods: {
      async goodget(){
                  const {data:res}= await this.axios.get("/orders",{params:this.orders})
                  console.log(res);
                  this.tableData=res.data.goods
      }
    },
}
</script>
<style lang="scss" scoped>

</style>